<?php
require 'db.php';
require 'function.php';

$id = $_GET['id'];
$admin = new Manager($link);
    $query = $admin->deleteUser($id);
    if ($query){
        header("Location:m_user.php");
    }else{
        echo "<script>alert('删除失败！');</script>";
        echo "<script>history.go(-1);</script>";
        exit();
    }




?>